package com.aizhixin.lab.task.repository;

import com.aizhixin.lab.task.entity.TaskQuestion;
import com.aizhixin.lab.task.entity.TaskStuCode;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface TaskStuCodeRepository extends JpaRepository<TaskStuCode, String> {
	TaskStuCode findById(String id);

	List<TaskStuCode> findByReleaseQuestionIdAndStuIdOrderBySubmitTimeDesc(String releaseQuestionId,String stuId);
	List<TaskStuCode> findByReleaseQuestionIdAndStuIdOrderBySubmitTime(String releaseQuestionId,String stuId);

}
